package com.jz.netthings.application.providerCollection.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 采浆记录-按键记录
 * </p>
 *
 * @author zyl
 * @since 2019-03-25
 */
public class PushButton implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("mlogId")
    private String mlogId;
    /**
     * 序号 
     */
    private Integer no;
    /**
     * 按钮点击时间
     */
    private Date time;
    /**
     * 按钮点击事件
     */
    private String events;
    /**
     * 按键所在界面
     */
    private String buttonUi;
    /**
     * 按键识别码
     */
    private Integer buttonCode;


    public String getMlogId() {
        return mlogId;
    }

    public void setMlogId(String mlogId) {
        this.mlogId = mlogId;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getTime() {
        return time;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setTime(Date time) {
        this.time = time;
    }

    public String getEvents() {
        return events;
    }

    public void setEvents(String events) {
        this.events = events;
    }

    public String getButtonUi() {
        return buttonUi;
    }

    public void setButtonUi(String buttonUi) {
        this.buttonUi = buttonUi;
    }

    public Integer getButtonCode() {
        return buttonCode;
    }

    public void setButtonCode(Integer buttonCode) {
        this.buttonCode = buttonCode;
    }

    @Override
    public String toString() {
        return "PushButton{" +
        "mlogId=" + mlogId +
        ", no=" + no +
        ", time=" + time +
        ", events=" + events +
        ", buttonUi=" + buttonUi +
        ", buttonCode=" + buttonCode +
        "}";
    }
}
